<?php

import('sun.action._WebServiceAction');
import('combo.service.ComboWsService');

class ComboAction extends _WebServiceAction
{
	protected $_class_name = 'ComboWsService';
	protected $_service_name = 'ComboWsService';

	public function index()
	{
		$this->start();
	}
	
	public function t()
	{
	    $s = new ComboWsService();
	    //$res = $s->getList('309000020044128309', 'XT01002');
	    //$res = $s->getAllCombos();
	    //$res = $s->getUserCombo('002000000166');
	    //$res = $s->getComboOrders('8088');
	    //$res = $s->updateUserJiajiTimes('002000000166', '', 1, 'S055');
	    $res = $s->buyComboService('002000000166', 'S010', 1, 0, 1);
	    echo($res);
	    
	    
	    echo '------------------------\n';
	    $operator = $this->_req->request['operator'];
	    $startdate = $this->_req->request['startdate'];
	    $enddate = $this->_req->request['enddate'];
	    $kzcardno = $this->_req->request['kzcardno'];
	    $InstituteId = $this->_req->request['InstituteId'];
	    $res = $s->getComboOrders($operator, $startdate, $enddate, $kzcardno, $InstituteId);
	    print_r($res);
	}
}
?>